package com.wn.demo01;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yellow Docter
 * @date 2024 -06-17
 * @desc
 */
public class Demo05 {

    public static void main(String[] args) {

        Demo05 demo04 = new Demo05();

        demo04.math((x,y)->{
            return x +y;
        },1,3);

        List<Integer> list = new ArrayList<>();
        list.add(1);

    }

    public void math(MyMathSim myMathSim,int a,int b){
        int math = myMathSim.math(a, b);
        System.out.println("math = " + math);
    }

}
